﻿using System;
using System.Collections.Generic;
using WorkModel;

namespace IRepository//[接口类(命名空间)]
{
    public interface IUserinfouRepository//[用户接口]
    {
        /// <summary>
        /// 用户注册(添加用户)
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        int UserAdd(Userinfou m);
        /// <summary>
        /// 用户显示
        /// </summary>
        /// <param name="name"></param>
        /// <param name="cIndex"></param>
        /// <param name="pSize"></param>
        /// <param name="Count"></param>
        /// <returns></returns>
        List<Userinfou> UserShow(string name, int cIndex, int pSize, out int Count);
        /// <summary>
        /// 用户反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Userinfou UserFan(int id);
        /// <summary>
        /// 修改用户
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        int UserUpt(Userinfou m);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int UserDelete(string id);
        /// <summary>
        /// 用户唯一性查询
        /// </summary>
        /// <param name="UserName"></param>
        /// <returns></returns>
        List<Userinfou> UserCheck(  string name);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="UserName"></param>
        /// <param name="UserPwd"></param>
        /// <returns></returns>
        int UserLongin(string UserName, string UserPwd);





    }
}
